package cn.itsource.basic.query;

import lombok.Data;

@Data
public class BaseQuery {

    private Integer currentPage=1;

    private Integer pageSize=10;

    private String keywords;


    //需要手动计算 limit 第一个参数

    public Integer getBegin(){
        return  (this.currentPage-1)*pageSize;
    }

}
